package so.sao.code.service.domain.entity;

import lombok.Data;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Entity;
import javax.persistence.EntityListeners;

/**
 * 域名分配到企业的关系表
 *
 * @author 
 */
@Entity
@Data
@EntityListeners(AuditingEntityListener.class)
public class CodeSupplierConfig extends BaseEntity {

    private static final long serialVersionUID = -7729628823728261685L;

    private Long companyId = 0L;//客户id
    private Long csId = 0L;//码供应商的id 暂位
    private Integer packageMappingStrategy = 1;//1：箱码1-1对应。2：箱码2-1对应
    private Integer status = 0;
    private Boolean deleted = false;

    public CodeSupplierConfig() {
    }

    public CodeSupplierConfig(Long companyId) {
        this.companyId = companyId;
    }


}
